#pragma once

#include <QWidget>
namespace Ui { class QPainterLearning; };

class QPainterLearning : public QWidget
{
	Q_OBJECT

public:
	QPainterLearning(QWidget *parent = Q_NULLPTR);
	~QPainterLearning();

	void drawText(QPainter* painter);
	void drawPoint(QPainter* painter);
	void drawPoints(QPainter* painter);
	void drawLine(QPainter* painter);
	void drawLines(QPainter* painter);
	void drawRect(QPainter* painter);
	void drawRects(QPainter* painter);

protected:
	void paintEvent(QPaintEvent* event);

private:
	Ui::QPainterLearning *ui;
};
